package com.berchen.jvm.jmap;

import java.util.ArrayList;

//-Xms30m -Xmx30m -XX:+PrintGCDetails
public class TestO1 {

    public static void main(String[] args) {
        ArrayList<byte[] > list=new ArrayList<>();
        for (int i = 0; i < 10000; i++) {
            byte[] bytes=new byte[1024*10];// 100KB
            list.add(bytes);
            try {
                Thread.sleep(120);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
